﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" Inherits="DeliverGoodsManagement_GetOrder" Codebehind="GetOrder.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<style type="text/css">
.hidden{visibility:hidden }
body {font-size:12px;margin:0;padding:0;}
a:visited{text-decoration:none;color:slategray;}
a:hover{text-decoration:underline;color:slategray;}
a:link{text-decoration:none;color:slategray;}
.juli {margin-top:10px;padding-left:20px;}
.tb2 {width: 100%; background-color:#999999;}
.z1{background-color:#e7e7e7; text-align:left; line-height:20px;}
.z2{background-color:#FFFFFF; text-align:left; line-height:20px;}
.zt3 {text-align:center; font-weight:600; color:#000000;}
.zt4 {text-align:center; color:#000000;}
.zt5 {text-align:right; color:#000000;}
.zt7 {text-align:right; color:#000000;}
.zt8 {text-align:right; color:#000000;}
.tb {width: 90%; background-color:#999999;}
a.lj {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:link {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:visited {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:hover {color:#ff3300;}
a.lj:active {color:#ff3300;}
.menu_bg { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;}
.menu_bg1 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;width:100%;clear:left;}
.input_button {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;}
h2 {padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;}
.kuandu {width:30px; text-align:right;}
.kuandu1 {width:60px; text-align:right;}
.kuandu2 {width:100px; text-align:right;}
.menu_bg3 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;padding-bottom:5px;border:#CCCCCC 0px solid; font-size:12px;}
.jiacu {float:left; font-weight:bold;padding-top:5px;}
.input_button3 {width:95px;height:23px;border:none;background:#ffffff url(../Include/Images/bt2.gif) no-repeat;}
</style>   
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>新增结算单明细</h2>
        <div class="menu_bg"><asp:Button ID="btnSubmit" runat="server" CssClass="input_button" Text="确定" OnClick="btnSubmit_Click" />
        <asp:Button ID="btnCancel" runat="server" CssClass="input_button" Text="取消" /></div>
        <div class="juli"><asp:DataList ID="dlistOrder" runat="server">
            <HeaderTemplate>
                <table class="tb2" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3" width="40">
                          &nbsp;  
                        </td>
                        <td class="zt3" width="70">
                            单据性质
                        </td>
                        <td class="zt3" width="140">
                            单据编号
                        </td>
                        <td class="zt3" width="140">
                            日期
                        </td>
                        <td class="zt3" width="100">
                            总金额

                        </td>
                        <td class="zt3" width="100">
                            已结算金额

                        </td>
                        <td class="zt3" width="100">
                            本次结算金额
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="40" align="center" class="bk_left">
                            <asp:CheckBox ID="checkRow" runat="server" />
                        </td>
                        <td width="70" align="center" class="bk_middle">
                            
                        </td>
                        <td width="140" align="center" class="bk_middle">
                            <asp:Label ID="lblOrderId" runat="server" Text='<%# Eval("DocId")%>'></asp:Label>
                        </td>
                        <td width="140" align="center" class="bk_middle">
                            <asp:Label ID="lblCreateDate" runat="server" Text='<%# Eval("ORDER_CREATEDATE")%>'></asp:Label>
                        </td>
                        <td width="100" align="center" class="bk_middle">
                            <asp:Label ID="lblTotal" runat="server" Text='<%#  String.Format("{0:0.00}",Eval("ORDER_TAMT"))%>'></asp:Label>
                        </td>
                        <td width="100" align="center" class="bk_middle">
                            <asp:Label ID="lblClearAmount" runat="server" Text='<%#  String.Format("{0:0.00}",Eval("CLEAREDAMT"))%>'></asp:Label>
                        </td>
                        <td width="100" align="center" class="bk_middle">
                            <asp:TextBox ID="txtCurrentClearAMT" runat="server" Text='<%# String.Format("{0:0.00}",Convert.ToDecimal(Eval("ORDER_TAMT"))-Convert.ToDecimal(Eval("CLEAREDAMT")))%>'></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></div>
        </div>
    </form>
</body>
</html>
